﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using System.Data.SqlClient;

namespace GestorDeFlotasDesktop.Estadistica
{
    public partial class ChoferesFraudulentos : Form
    {
        public ChoferesFraudulentos()
        {
            InitializeComponent();
            cargarChoferesFraudulentos();
        }

        private void cargarChoferesFraudulentos()
        {
            SqlInterface.Conectar();
            SqlDataReader fraudulentos = SqlInterface.ExecuteReader("SQUIRTLE.spChoferesFraudulentos", CommandType.StoredProcedure);
            if (fraudulentos.HasRows)
            {

                DataTable tablaMejoresClientes = new DataTable();
                tablaMejoresClientes.Load(fraudulentos);
                dataGridView1.DataSource = tablaMejoresClientes;
                dataGridView1.Columns[0].Visible = false;
            }

            SqlInterface.Desconectar();
        }
    }
}
